package com.share.finance.risk.pre.web;

import com.share.common.common.Result;
import com.share.finance.risk.common.model.sys.PreRequest;
import com.share.finance.risk.pre.service.CreditLoanService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 角色表  前端控制器
 * </p>
 *
 * @author author
 * @since 2022-09-22
 */
@Slf4j
@RestController
public class CreditLoanController {

    @Autowired
    private CreditLoanService creditLoanService;

    @RequestMapping("/apply/creditLoan")
    public Result applyCreditLoan(@RequestBody PreRequest req) {
        return creditLoanService.applyCreditLoan(req);
    }
}
